// Package storeproduct
// @Link  https://github.com/bufanyun/hotgo
// @Copyright  Copyright (c) 2024 HotGo CLI
// @Author  Ms <133814250@qq.com>
// @License  https://github.com/bufanyun/hotgo/blob/master/LICENSE
// @AutoGenerate Version 2.15.7
package storeproduct

import (
	"hotgo/internal/model/input/form"
	"hotgo/internal/model/input/store"

	"github.com/gogf/gf/v2/frame/g"
)

// ListReq 查询商品列表
type ListReq struct {
	g.Meta `path:"/storeProduct/list" method:"get" tags:"商品" summary:"获取商品列表"`
	store.StoreProductListInp
}

type ListRes struct {
	form.PageRes
	List []*store.StoreProductListModel `json:"list"   dc:"数据列表"`
}

// ExportReq 导出商品列表
type ExportReq struct {
	g.Meta `path:"/storeProduct/export" method:"get" tags:"商品" summary:"导出商品列表"`
	store.StoreProductListInp
}

type ExportRes struct{}

// ViewReq 获取商品指定信息
type ViewReq struct {
	g.Meta `path:"/storeProduct/view" method:"get" tags:"商品" summary:"获取商品指定信息"`
	store.StoreProductViewInp
}

type ViewRes struct {
	*store.StoreProductViewModel
}

// EditReq 修改/新增商品
type EditReq struct {
	g.Meta `path:"/storeProduct/edit" method:"post" tags:"商品" summary:"修改/新增商品"`
	store.StoreProductEditInp
}

type EditRes struct{}

// DeleteReq 删除商品
type DeleteReq struct {
	g.Meta `path:"/storeProduct/delete" method:"post" tags:"商品" summary:"删除商品"`
	store.StoreProductDeleteInp
}

type DeleteRes struct{}

// MaxSortReq 获取商品最大排序
type MaxSortReq struct {
	g.Meta `path:"/storeProduct/maxSort" method:"get" tags:"商品" summary:"获取商品最大排序"`
	store.StoreProductMaxSortInp
}

type MaxSortRes struct {
	*store.StoreProductMaxSortModel
}

// StatusReq 更新商品状态
type StatusReq struct {
	g.Meta `path:"/storeProduct/status" method:"post" tags:"商品" summary:"更新商品状态"`
	store.StoreProductStatusInp
}

type StatusRes struct{}

// SwitchReq 更新商品开关状态
type SwitchReq struct {
	g.Meta `path:"/storeProduct/switch" method:"post" tags:"商品" summary:"更新商品状态"`
	store.StoreProductSwitchInp
}

type SwitchRes struct{}
